Package com.cisco.pt.ipc.sim
Interface TcpConnection
- All Superinterfaces:
IPCObject
- All Known Implementing Classes:
TcpConnectionImpl
Information provided by the PKI file:
\class TcpConnection
\brief TcpConnection for TCP connections made from TcpProcess's listen() and connect().
- Author:
- Auto-generated
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(boolean bAccepted) Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:getState()Information provided by the PKI file:Methods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Method Details
-
getLocalIp
IPAddress getLocalIp()Information provided by the PKI file:
\brief Get local Ip Address \return ip, local ip address- Returns:
- IPAddress Returns a IPAddress
-
getLocalIpv6
IPV6Address getLocalIpv6()Information provided by the PKI file:
\brief Get local Ipv6 Address \return ipv6, local ipv6 address- Returns:
- IPV6Address Returns a IPV6Address
-
getLocalPort
int getLocalPort()Information provided by the PKI file:
\brief Get local Port number \return int, port number- Returns:
- int Returns a int
-
getRemoteIp
IPAddress getRemoteIp()Information provided by the PKI file:
\brief Get remote Ip Address \return ip, remote ip address- Returns:
- IPAddress Returns a IPAddress
-
getRemoteIpv6
IPV6Address getRemoteIpv6()Information provided by the PKI file:
\brief Get remote Ipv6 Address \return ipv6, remote ipv6 address- Returns:
- IPV6Address Returns a IPV6Address
-
getRemotePort
int getRemotePort()Information provided by the PKI file:
\brief Get remote port number \return int, remote port number- Returns:
- int Returns a int
-
getRemoteIpString
String getRemoteIpString()Information provided by the PKI file:
\brief Get remote ip address in string format \return string, remote ip address- Returns:
- String Returns a String
-
getState
TcpConnectionState getState()Information provided by the PKI file:
\brief get the tcp connection state \return TcpConnectionState CLOSED = 0, SYN_SENT = 1, SYN_RECEIVED = 2, ESTABLISHED = 3, LISTEN = 4, FIN_WAIT_1 = 5, TIMED_WAIT = 6, CLOSE_WAIT = 7, FIN_WAIT_2 = 8, LAST_ACK = 9, CLOSING = 10- Returns:
- TcpConnectionState Returns a TcpConnectionState
-
accept
void accept(boolean bAccepted) Information provided by the PKI file:
\brief Accept the connection request \param bAccepted, bool- true to accept and false to reject- Parameters:
bAccepted- Takes in a parameter of bAccepted
-